import request from '@/utils/request';

// 查询列表
export function getDataList(data) {
  return request({
    url: '/demo/beonduty/list',
    method: 'get',
    params: data,
  });
}
// 删除
export function delDataList(ids) {
  return request({
    url: '/demo/beonduty/delete',
    method: 'post',
    data: ids,
  });
}
// 查看
export function getDataInfo(id) {
  return request({
    url: `/demo/beonduty/info/${id}`,
    method: 'get',
  });
}
// 新增 & 修改
export function savaDataInfo(data) {
  return request({
    url: `/demo/beonduty/${!data.id ? 'save' : 'update'}`,
    method: 'post',
    data: data,
  });
}

// 查看
export function getZhiBanYiSheng(data) {
  return request({
    url: `/demo/beonduty/getZhiBanYiSheng`,
    method: 'get',
    params: data,
  });
}
